import yfinance as yf

# 获取当天股票的收盘价
today = yf.Ticker("AAPL").datetime.strftime("%Y-%m-%d")
close_price = yf.Ticker("AAPL").history()[0].close

# 打印收盘价
print("今天的收盘价为：{:.2f}".format(close_price))